package com.hnkywl.sts.entity.base;

import com.hnkywl.sts.entity.BaseEntity;
import com.hnkywl.sts.entity.cggl.Cgd;
import com.hnkywl.sts.entity.xsgl.Xsd;
import org.hibernate.annotations.Where;

import javax.persistence.*;
import java.sql.Blob;

/**
 * Created with IntelliJ IDEA.
 * User: jerry
 * Date: 13-6-17
 * Time: 下午2:06
 * To change this template use File | Settings | File Templates.
 */
@Entity
@Table(name="T_SYS_EWM")
@Where(clause = "deleted!='1'")
public class Ewm extends BaseEntity {
    @Id
    @SequenceGenerator(name = "seqEwm", allocationSize = 1, sequenceName = "SEQ_SYS_EWM")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqEwm")
    private Long id;

    @Lob
    @Basic(fetch= FetchType.LAZY)
    @Column(name="wj")
    private Blob wj;


    private Long bdid;

    private String type;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Blob getWj() {
        return wj;
    }

    public void setWj(Blob wj) {
        this.wj = wj;
    }

    public Long getBdid() {
        return bdid;
    }

    public void setBdid(Long bdid) {
        this.bdid = bdid;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
